package com.woniuxy.his.service.impl;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.woniuxy.his.entity.User;
import com.woniuxy.his.mapper.UserMapper;
import com.woniuxy.his.service.LoginService;

@Service("loginService")
public class LoginServiceImpl implements LoginService {
	
	@Resource
	private UserMapper userMapper;

	@Override
	public int register() {
		
		return 0;
	}

	@Override
	public User isLogin(String userName, String passWord) {
		
		return userMapper.findUserByNameAndPassword(userName, passWord);
	}

}
